package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.RecordNoticeMapper;
import com.ruoyi.business.domain.RecordNotice;
import com.ruoyi.business.service.IRecordNoticeService;

/**
 * 识别记录Service业务层处理
 * 
 * @author asher
 * @date 2021-11-28
 */
@Service
public class RecordNoticeServiceImpl implements IRecordNoticeService 
{
    @Autowired
    private RecordNoticeMapper recordNoticeMapper;

    /**
     * 查询识别记录
     * 
     * @param recordNoticeId 识别记录主键
     * @return 识别记录
     */
    @Override
    public RecordNotice selectRecordNoticeByRecordNoticeId(Long recordNoticeId)
    {
        return recordNoticeMapper.selectRecordNoticeByRecordNoticeId(recordNoticeId);
    }

    /**
     * 查询识别记录列表
     * 
     * @param recordNotice 识别记录
     * @return 识别记录
     */
    @Override
    public List<RecordNotice> selectRecordNoticeList(RecordNotice recordNotice)
    {
        return recordNoticeMapper.selectRecordNoticeList(recordNotice);
    }

    /**
     * 新增识别记录
     * 
     * @param recordNotice 识别记录
     * @return 结果
     */
    @Override
    public int insertRecordNotice(RecordNotice recordNotice)
    {
        recordNotice.setCreateTime(DateUtils.getNowDate());
        return recordNoticeMapper.insertRecordNotice(recordNotice);
    }

    /**
     * 修改识别记录
     * 
     * @param recordNotice 识别记录
     * @return 结果
     */
    @Override
    public int updateRecordNotice(RecordNotice recordNotice)
    {
        recordNotice.setUpdateTime(DateUtils.getNowDate());
        return recordNoticeMapper.updateRecordNotice(recordNotice);
    }

    /**
     * 批量删除识别记录
     * 
     * @param recordNoticeIds 需要删除的识别记录主键
     * @return 结果
     */
    @Override
    public int deleteRecordNoticeByRecordNoticeIds(Long[] recordNoticeIds)
    {
        return recordNoticeMapper.deleteRecordNoticeByRecordNoticeIds(recordNoticeIds);
    }

    /**
     * 删除识别记录信息
     * 
     * @param recordNoticeId 识别记录主键
     * @return 结果
     */
    @Override
    public int deleteRecordNoticeByRecordNoticeId(Long recordNoticeId)
    {
        return recordNoticeMapper.deleteRecordNoticeByRecordNoticeId(recordNoticeId);
    }
}
